home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / object_name < prev    next >
Text File  |  2001-08-06  |  1KB  |  38 lines

  1. SYNOPSIS
  2.         string object_name()
  3.         string object_name(object ob)
  4.  
  5. DESCRIPTION
  6.         Get the name of an object <ob> or, if no argument is given, of
  7.         the current object.
  8.  
  9.         As a special case, if <ob> is 0, the function returns 0.
  10.  
  11.         This name is the name under which the object is stored in the
  12.         muds object table. It is initialised at the creation of the
  13.         object such that blueprints are named after the file they are
  14.         compiled from (without the trailing '.c'), and clones receive
  15.         the name of their blueprint, extended by '#' followed by
  16.         a unique non-negative number. These rules also apply to
  17.         virtual objects - the real name/type of virtual objects
  18.         is ignored.
  19.  
  20.         The name of an object can be changed with rename_object(), and
  21.         object_name() will reflect any of these changes.
  22.         
  23.         The returned name always begins with '/' (absolute path),
  24.         except when the parser runs in COMPAT mode.
  25.  
  26. EXAMPLES
  27.                 find_object(object_name(ob)) == ob
  28.         
  29.         This is guaranteed to be true for all objects ob that are not
  30.         destructed.
  31.         
  32. HISTORY
  33.         0 is accepted as argument since 3.2.9.
  34.  
  35. SEE ALSO
  36.         clone_object(E), load_name(E), load_object(E), find_object(E),
  37.         object_time(E), program_name(E), rename_object(E)
  38.